<?php


namespace app\admin\validate;


use think\Validate;

class Region extends Validate
{
    protected $rule = [
        'name'           =>  'require|unique:region',
    ];
    protected $message = [
        'name.require'       => '请输入地区名称',
        'name.unique'        => '地区名称已存在',
    ];
}